package Collectionstest;

import java.util.ArrayList;
import java.util.Collections;
import java.util.concurrent.Callable;

public class Begain {
    public static void main(String[] args) {
        ArrayList<Integer> al = new ArrayList<>();
        Collections.addAll(al,1,3,4,5,6,7,8,9,2,11,10);
        Collections.sort(al);
        System.out.println(al);
        int a = Collections.binarySearch(al,8);
        System.out.println(a);

        Collections.reverse(al);
        System.out.println(al);

        Collections.shuffle(al);
        System.out.println(al);
    }
}
